﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Logistics_Management_System.Customer_Employee_Permission
{
    public class Customer_Repository : ServiceBase
    {
        public LG_Customer GetCustomerById(int cust_id)
        { return (from cust in this.DB.LG_Customers where cust.Id == cust_id select cust).FirstOrDefault<LG_Customer>(); }

        public LG_Customer GetCustomerByIdentityCard(string identityNumber)
        { return (from cust in this.DB.LG_Customers where cust.Identity_Card == identityNumber select cust).FirstOrDefault<LG_Customer>(); }

    }
}